Update netty.version [SECURITY] - #11
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/netty.version
branch
from
July 26, 2026 12:22
b0b9151 to
49a1781
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.1.133.Final→4.1.137.Final4.1.133.Final→4.1.136.Final4.1.133.Final→4.1.137.Final4.1.133.Final→4.1.136.FinalWarning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Have a look at your dependency dashboard
Netty has an IPv6 Subnet Filter Bypass via Incorrect Comparator Masking
CVE-2026-44249 / GHSA-3qp7-7mw8-wx86
More information
Details
Summary
An attacker can bypass IPv6 subnet rules due to an incorrect masking operation in IpSubnetFilterRule.compareTo(). Valid public IP addresses can bypass the restrictions.
Details
io.netty.handler.ipfilter.IpSubnetFilterRule#compareTo(java.net.InetSocketAddress)method performs a bitwise AND between the incoming IP address and the configured networkAddress, instead of the subnetMask.Impact
Access Control Bypass. Attacker can bypass IpSubnetFilter IPv6 access controls.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: SNI handler pre-allocates up to 16 MiB from nine attacker bytes
CVE-2026-45416 / GHSA-x4gw-5cx5-pgmh
More information
Details
SslClientHelloHandler.decode() reads the 24-bit TLS handshake length and, when the ClientHello does not fit in the first record, eagerly allocates
ctx.alloc().buffer(handshakeLength)(line 161). The guard at line 140 ishandshakeLength > maxClientHelloLength && maxClientHelloLength != 0, and the commonly-used SniHandler/AbstractSniHandler constructors (SniHandler(Mapping), SniHandler(AsyncMapping), AbstractSniHandler()) pass maxClientHelloLength=0 and handshakeTimeoutMillis=0, so the length guard is disabled and no timeout is scheduled. A 16 MiB request exceeds the default pooled chunk size and becomes a huge/unpooled allocation performed immediately. The buffer is retained in the handler until the channel closes.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: Wrapping plain trust manager silently disables hostname verification
CVE-2026-50010 / GHSA-c653-97m9-rcg9
More information
Details
SimpleTrustManagerFactory.engineGetTrustManagers() and related paths wrap any user-supplied plain X509TrustManager in X509TrustManagerWrapper, which extends X509ExtendedTrustManager but implements the 3-arg checkServerTrusted(chain, authType, SSLEngine) by discarding the SSLEngine and calling the 2-arg delegate. Because the object now IS an X509ExtendedTrustManager, neither SunJSSE's internal AbstractTrustManagerWrapper nor Netty's own OpenSslX509TrustManagerWrapper will re-wrap it to add endpoint-identification. Consequently, even though Netty 4.2 sets endpointIdentificationAlgorithm="HTTPS" by default, a client built with
SslContextBuilder.forClient().trustManager(somePlainX509TrustManager)performs no hostname verification at all.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: Fragmented ClientHello records trigger quadratic pre-handshake reassembly in default SNI parsing
CVE-2026-75596 / GHSA-fccg-mwvh-qqg4
More information
Details
Summary
Netty's default SNI entrypoint reparses and recopies previously received ClientHello fragments on every additional TLS handshake record. A remote peer can send a small first record that advertises a large ClientHello length and then drip the body in many tiny records, causing superlinear (quadratic) CPU work before the handshake completes. With 4095 one-byte fragments, the handler recopies 8,386,560 bytes from only 24,579 bytes on the wire — a 341× amplification ratio.
Affected Entrypoints
io.netty.handler.ssl.SniHandler— default constructorsio.netty.handler.ssl.SslClientHelloHandler— pre-handshake ClientHello aggregation pathVulnerable Code Locations
handler/src/main/java/io/netty/handler/ssl/SniHandler.java:85handler/src/main/java/io/netty/handler/ssl/SslClientHelloHandler.java:75(decode entry)handler/src/main/java/io/netty/handler/ssl/SslClientHelloHandler.java:165(handshakeBuffer.clear)handler/src/main/java/io/netty/handler/ssl/SslClientHelloHandler.java:174(writeBytes re-copy)codec-base/src/main/java/io/netty/handler/codec/ByteToMessageDecoder.java:294(cumulation retention)Exploit Path
Impact
SniHandlerfor TLS termination (the default SNI path)Credits
Found by a security research team from the University of Sydney, focusing on detecting open source software vulnerabilities.
Liyi Zhou: https://lzhou1110.github.io/
Ziyue Wang: https://zyy0530.github.io/
Strick: https://str1ckl4nd.github.io/
Maurice: https://maurice.busystar.org/
Chenchen Yu: https://7thparkk.github.io/
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: SNI Routing Bypass via Fragmented TLS ClientHello Causing Fallback to Default SslContext
CVE-2026-75595 / GHSA-c4c3-7fpv-j4q5
More information
Details
Summary
A fragmented TLS ClientHello whose handshake header spans multiple records makes Netty silently fall back to the default SslContext; where per-SNI selection is the sole mTLS gate, an unauthenticated attacker can bypass the route's mTLS requirement.
Details
In
io.netty.handler.ssl.SslClientHelloHandler#decodethe guard that should wait for the 4-byte handshake header checks the wrong offset - it ignores the 5-byte record header that precedes it - and therefore never fires:When the first record's payload is < 4 bytes,
handshakeLength = in.getUnsignedMedium(readerIndex + SslUtils.SSL_RECORD_HEADER_LENGTH + 1);leads toIndexOutOfBoundsException. That is caught by the genericcatch (Exception)block, which callsselect(ctx, null)- this is the defaultSslContext. Fallback to default on parse failure is a problem when per-SNI selection is the sole mTLS gate.Impact
SNI routing bypass. Escalates to an unauthenticated mTLS bypass only when:
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty HTTP/2: Advertised MAX_CONCURRENT_STREAMS are not enforced
CVE-2026-47244 / GHSA-5x3r-wrvg-rp6q
More information
Details
Impact
DefaultHttp2Connection.DefaultEndpoint initialises maxActiveStreams/maxStreams to Integer.MAX_VALUE, and Http2Settings never inserts SETTINGS_MAX_CONCURRENT_STREAMS by default (Http2Settings.java:305-307 only clamps a user-supplied value). Unless the application explicitly calls initialSettings().maxConcurrentStreams(n), a Netty HTTP/2 server advertises no limit and enforces none locally. Each open stream allocates a DefaultStream object, PropertyMap slots, flow-controller state and IntObjectHashMap entry; with ~2^30 permissible odd stream IDs a single TCP connection can create hundreds of thousands of long-lived stream objects. This is also the precondition for CVE-2023-44487-style Rapid-Reset amplification, where the absence of a low concurrent cap multiplies backend work.
Resources
https://www.rfc-editor.org/rfc/rfc7540.html#section-6.5.2
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
netty-codec-http2: ByteBuf Reference-Count Leak in DelegatingDecompressorFrameListener Leads to Memory Exhaustion
CVE-2026-48043 / GHSA-c2gf-v879-257j
More information
Details
Impact
The
DelegatingDecompressorFrameListenerclass orchestrates HTTP/2 decompression by embedding a per-streamEmbeddedChannelthat runs the appropriate decompression codec (gzip, deflate, zstd) and forwards decompressed chunks to a wrapped listener. Each decompressed chunk is a pooledByteBufhanded to an anonymousChannelInboundHandlerAdaptertail handler, which becomes the sole owner responsible for releasing it.A remote peer could send frames that would result in the flow-controller throwing and so trigger a resource leak which at the end might take down the whole JVM due OOME.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty susceptible to HTTP/2 Reset Attack with different on-the-wire signature
CVE-2026-50560 / GHSA-563q-j3cm-6jxm
More information
Details
Summary
Netty HTTP/2 max header size handling produces attack similar to HTTP/2 Rapid Reset.
Details
There is a setting in the http2 specification called
SETTINGS_MAX_HEADER_LIST_SIZE. According to the RFC: “This advisory setting informs a peer of the maximum field section size that the sender is prepared to accept, in units of octets.”When a client sends that setting to Netty, it appears that Netty will behave as follows:
Functionally, this should be similar to the http2 reset attack, but with a different on-the-wire signature.
Remediation
When speaking with clients, Netty should potentially treat this as “advisory” and ignore it. It would be best to ignore the SETTINGS_MAX_HEADER_LIST_SIZE setting from clients (or ignore it when sending to clients). According to the spec, a server does not need to honor this advisory setting, and it appears that other http/2 implementations ignore it when acting as a server.
Impact
This is a DDoS attack similar to the HTTP/2 Rapid Reset Attack.
Credit
Jonathan Looney (Engineering, Netflix)
Contact
Ashley Tolbert (Security, Netflix) - artolbert@netflix.com
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: [codec-http2] Lack of Host Header Deduplication in HTTP/2→HTTP/1.x Translation Leads to Request Routing Bypass
CVE-2026-59900 / GHSA-c69g-56f8-xwqj
More information
Details
Netty's HTTP/2-to-HTTP/1.x translation layer (
Http2StreamFrameToHttpObjectCodecandInboundHttp2ToHttpAdapter) fails to deduplicate or validateHostheaders when an HTTP/2 client supplies both the:authoritypseudo-header and a literalhostheader in a single HEADERS frame. The translator maps:authoritytoHostand separately copies the literalhostheader, producing anHttpRequestobject containing twoHostheaders with attacker-controlled differing values.Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: HTTP/2 decompression leaks ByteBuf reference count when the decompressor channel is already closed (Direct memory leak / OOM DoS)
CVE-2026-56819 / GHSA-93wv-jw9v-4972
More information
Details
Summary
A remote, unauthenticated peer can leak one direct
ByteBufper HTTP/2DATAframe inapplications that enable HTTP/2 content decompression via
DelegatingDecompressorFrameListener.When a
DATAframe is processed for a stream whose decompressor has already been closed,Http2Decompressor.decompress(...)retains the frame buffer but never releases it on the errorpath, so its reference count never returns to zero. Repeating this over a long-lived HTTP/2
connection exhausts direct memory and crashes the JVM with
OutOfMemoryError— a denial of service.Details
In
codec-http2/src/main/java/io/netty/handler/codec/http2/DelegatingDecompressorFrameListener.java,Http2Decompressor.decompress(...)does:The argument
data.retain()is evaluated beforewriteInbound(...)executes, incrementing thebuffer's reference count (
refCnt: 1 -> 2). The very first statement ofEmbeddedChannel.writeInbound(...)isensureOpen()(EmbeddedChannel.java:360), which throwsClosedChannelExceptionwhen the decompressor's internalEmbeddedChannelhas already been closed.When that happens:
DATApayload has beenretain()ed but never entered the pipeline, so the decoder'sfinally { release() }never runs;catch (Throwable t)block indecompress(...)(around line 451) does notrelease the extra reference;
The decompressor channel is closed on a reachable path:
Http2ConnectiononStreamRemoved→Http2Decompressor.cleanup()→EmbeddedChannel.finishAndReleaseAll()(
DelegatingDecompressorFrameListener.java:125-133and418-420).A peer that sends
DATAframes for a stream whose decompressor has already been cleaned up (e.g.continuing to send
DATAafterEND_STREAM/ stream removal) thus leaks one directByteBufperframe.
Affected code:
DelegatingDecompressorFrameListener.java, methodHttp2Decompressor.decompress(...)— the
decompressor.writeInbound(data.retain())call (line ~433) and itscatch (Throwable t)block (line ~451), which lacks a
data.release()rollback.Suggested fix: track whether
writeInboundsucceeded and roll back the extraretain()only whenthe data never entered the pipeline:
ensureOpen()throws (this bug)falsedata.release()truefinallyalready releasedfinish()throwstruewriteInboundalready succeededPoC
Reproduced against the official, unmodified
netty-codec-http2-4.2.15.Final.jarfrom Maven Central,using real netty classes and measuring
ByteBuf.refCnt()directly (the leaking logic is not mocked).Reproduction steps:
4.2.15.Final):netty-common,netty-buffer,netty-transport,netty-resolver,netty-handler,netty-codec-base,netty-codec,netty-codec-http,netty-codec-http2,netty-codec-compression.Http2Decompressorwrapping a real gzip decoderEmbeddedChannel(
ZlibCodecFactory.newZlibDecoder(ZlibWrapper.GZIP)).cleanup()/finishAndReleaseAll()).DATApayload withZlibCodecFactory.newZlibEncoder(GZIP)(refCnt = 1).decompress(...)on the closed channel.writeInbound(...)throwsClosedChannelExceptionat itsensureOpen()entry(
EmbeddedChannel.java:360), reached fromDelegatingDecompressorFrameListener.java:433;data.refCnt()is now2.refCntstays at1(release()returnsfalse) → leaked.Observed reference-count trace:
Observed exception stack (confirms the leak point):
Two notes on the harness (they do not affect the leak mechanism):
close()rather than throughcleanup(). The endstate is identical (channel closed →
writeInboundthrows atensureOpen()); the bug depends on"channel closed → retain not rolled back", not on how the channel was closed.
StreamException's root cause shows asNullPointerExceptionbecause the harness does not initialise an
Http2LocalFlowController(a secondary exceptionreported during channel close). The leak is already sealed at the
ClosedChannelExceptionthrownby
writeInbound'sensureOpen()(line 360); in a real server with the flow controllerinitialised, the triggering exception is the
ClosedChannelExceptionitself.A complete self-contained PoC (
Verify02DecompressLeak.java, ~150 lines, no test framework) plus theexact
javac/javacommands can be attached on request.Impact
denial of service. Each crafted
DATAframe leaks one (typically direct/off-heap)ByteBuf.DelegatingDecompressorFrameListenerin its HTTP/2 pipeline.DATAframes for a stream whose decompressor has been cleaned up (e.g. continue sending
DATAafterEND_STREAM). No special server configuration beyond decompression being enabled.the JVM with
OutOfMemoryError.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: HttpObjectDecoder skips arbitrary initial control characters when only initial CRLF characters are permitted
CVE-2026-50020 / GHSA-hvcg-qmg6-jm4c
More information
Details
Summary
Before reading the first request-line,
HttpObjectDecoderskips every byte for whichCharacter.isISOControl(b)istrue(0x00–0x1F and 0x7F) as well as all whitespace.RFC 9112 §2.2 only asks servers to ignore empty CRLF lines preceding the request-line —
a carefully scoped robustness allowance intended to handle HTTP/1.0 POST workarounds.
Silently absorbing NUL bytes, SOH, STX, and other non-CRLF control characters goes
significantly beyond this, and can be exploited for request-boundary confusion in pipelined
or multiplexed transports where a front-end component treats those bytes differently.
Affected Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.javaISO_CONTROL_OR_WHITESPACEstatic initialiser — marks all ISO control charscodec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.javaSKIP_CONTROL_CHARS_BYTESByteProcessor— skips the entire setcodec-http/src/main/java/io/netty/handler/codec/http/HttpObjectDecoder.javaLineParser.skipControlChars— advancesreaderIndexpast all matching bytesSpecification Analysis
RFC 9112 §2.2 — Message Parsing
Deviation
The RFC names a single permitted exception: an empty line (bare CRLF, i.e. the two-byte
sequence
\r\n). TheISO_CONTROL_OR_WHITESPACEtable is initialised as:Character.isISOControlreturnstruefor0x00–0x1Fand0x7F. This includes NUL(
0x00), SOH (0x01), STX (0x02), BEL (0x07), DEL (0x7F), and every other non-CRLFcontrol character. The
SKIP_CONTROL_CHARSstate runs this scan unconditionally before thefirst
READ_INITIAL, meaning any sequence of such bytes prepended to a request is silentlyconsumed.
A load balancer or TLS terminator that does not perform the same scan sees a different
message boundary than Netty does, which is the basis of a request-desync / smuggling attack.
Suggested Unit Test
Add to
HttpRequestDecoderTest.java.Current behaviour (unfixed):
skipControlCharsadvances past0x00and0x01becauseboth are in
ISO_CONTROL_OR_WHITESPACE; the request parses normally,isFailure()isfalse→ test fails.Expected behaviour after fix: only CRLF empty lines are tolerated; non-CRLF control
bytes produce an error,
isFailure()istrue→ test passes.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty SPDY SETTINGS frame count materializes unbounded settings map
CVE-2026-55831 / GHSA-6jqx-86gh-f27w
More information
Details
Summary
Netty's SPDY SETTINGS decoder accepts a peer-declared SETTINGS entry count up to the 24-bit frame-length limit and materializes every unique setting ID in
DefaultSpdySettingsFramewithout an implementation-level count cap. A remote SPDY/3.1 peer can send one syntactically valid roughly 2 MiB SETTINGS frame that creates 262144 map entries, amplifying network input into heap growth and ordered-map insertion work.Details
Inbound SPDY bytes enter
SpdyFrameCodec.decode()and are passed directly to the frame decoder. The decoder reads the peer-controlled flags and 24-bit frame length from the common header, then accepts SETTINGS frames with onlylength >= 4. For SETTINGS payloads, it reads the peer-controllednumSettingsfield and validates only that the remaining payload is divisible into 8-byte entries and exactly matches that count. Each accepted entry then supplies an attacker-controlled 24-bit ID and value, and the normal delegate path forwards it intospdySettingsFrame.setValue(). The sink isDefaultSpdySettingsFrame: it backs settings with aTreeMap, checks only that IDs fit the SPDY 24-bit maximum, and inserts a newSettingfor each previously unseen ID. There is no count budget between the wire-format count validation and the TreeMap insertion site.PoC
poc.zip
run with
expected output:
The
NETTY_SPDY_SETTINGS_COUNT_MAP_TRIGGEREDline means the harness decoded the crafted SETTINGS frame and observed all 262144 peer-selected IDs in the resulting settings map. Thewire_bytes=2097164,first_value=1, andlast_value=262144fields distinguish this from a setup failure: they show the exact oversized frame was accepted and fully materialized.Impact
remote unauthenticated network peer that can speak SPDY/3.1 to a Netty pipeline containing
SpdyFrameCodeccan trigger resource-exhaustion denial of service. The required guards are satisfied by a complete valid SETTINGS frame using the expected SPDY version, a length of4 + numSettings * 8, and IDs within the accepted 24-bit range; the verified PoC usesnumSettings=262144andwire_bytes=2097164. On that input, Netty materializes 262144 attacker-controlled entries in a TreeMap-backedDefaultSpdySettingsFrame, with local runs observing about 17-18 MiB of heap growth per decoded frame plus CPU work for ordered-map insertion.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty SPDY zlib header block continues decoded expansion after maxHeaderSize truncation
CVE-2026-55833 / GHSA-mvh2-crg5-v77c
More information
Details
Summary
Netty SPDY header decoding continues inflating zlib-compressed header blocks after the raw header parser has already exceeded maxHeaderSize and marked the frame truncated. At commit b2d2137c4404af425bf9d5d601a62576f5c06925, a 12,253-byte compressed SPDY header block can declare and inflate a 12 MiB header-name field with maxHeaderSize=16, forcing compression-amplified decode and skip work in a reachable SpdyFrameCodec pipeline.
PoC
poc.zip
run with:
expected output:
The fingerprint means the compressed input was fully consumed while the raw header parser ended with
truncated=trueandinvalid=falseafter processing the oversized decoded name. That specific state distinguishes this bug from a generic setup failure: the maxHeaderSize guard fired, but the zlib/raw decode path still inflated and skipped the full 12 MiB declared name.Impact
A remote unauthenticated peer that can speak SPDY to a Netty pipeline containing SpdyFrameCodec can send a small compressed HEADERS block that expands into much larger raw header data after the configured maxHeaderSize limit has already been exceeded. The attack requires a reachable SPDY codec, ordinary transport setup such as TCP and optional TLS, and no independent compressed-frame-size or connection-rate limit ahead of SpdyFrameCodec. The satisfied protocol guards are straightforward: the HEADERS frame uses a nonzero stream id and length >= 4, the decoder factory selects the zlib decoder, the payload uses the SPDY dictionary, and the raw block appends a zero-length value so the already-truncated frame reaches END_HEADER_BLOCK. The user-visible effect is denial of service through compression-amplified CPU and allocation churn.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: [SpdyHttpDecoder] ByteBuf Reference Leak on RST_STREAM Leads to Native Memory Exhaustion
CVE-2026-56745 / GHSA-jppx-w49h-x2qq
More information
Details
The
SpdyHttpDecoderhandler in Netty's SPDY-to-HTTP codec allocates a pooledByteBufwhen processing a client-initiatedSYN_STREAMframe withFLAG_FIN=0, storing the partially-constructedFullHttpRequestin an internal map (messageMap) to accumulate subsequentDATAframes. When the remote peer sends anRST_STREAMfor that stream, or when the accumulated content exceedsmaxContentLength, the decoder removes the entry from the map but never releases the pooled ByteBuf, permanently leaking the allocated memory.Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: Security Control Bypass via CORS Short-Circuit Failure
CVE-2026-56746 / GHSA-6cqp-g7gg-8hr5
More information
Details
Summary
Netty's CorsHandler provides a
shortCircuit()configuration designed to reject unauthorized cross-origin requests immediately, acting as a security control before requests reach the application. However, due to a logical operator error in the origin evaluation process, this protection can be entirely bypassed. An attacker can bypass the short-circuit mechanism by sending a request with anOrigin: nullheader. This failure forwards unauthorized requests to the backend application, bypassing intended access controls.Details
In
io.netty.handler.codec.http.cors.CorsHandler#channelRead, the short-circuit logic relies on the configuration returned bygetForOrigin(origin)to determine if an origin is authorized. IfgetForOriginreturns a configuration object, the short-circuit check(!(origin == null || config != null))is bypassed, and the request proceeds to the backend.The vulnerability is located in the
getForOriginmethod:If an attacker sends
Origin: null,NULL_ORIGIN.equals(requestOrigin)evaluates to true. The method returns the configuration object regardless of whetherisNullOriginAllowed()was configured by the developer. The short-circuit is bypassed.Impact
Applications relying on CorsHandler's short-circuit feature to prevent unauthorized cross-origin requests from reaching their backend logic are completely exposed. The framework fails to enforce the developer's intended access controls, allowing unauthorized requests to be processed.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: WebSockets V07/V08 handshaker missing Connection/Upgrade validation
CVE-2026-59898 / GHSA-4mp9-239f-g9hg
More information
Details
Summary
An attacker can force WebSocket upgrade via the lax V07 (or V08) handshaker by sending
Sec-WebSocket-Version: 7and omittingConnection: Upgrade/Upgrade: websocketheaders, completing a protocol switch that a proxy would not recognize as an Upgrade request and enabling HTTP request smuggling / protocol-confusion attacks.Severity
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: [HttpContentEncoder] Unbounded Per-Connection Queue Growth via HTTP/1.1 Pipelining Leads to Denial of Service
CVE-2026-59899 / GHSA-q4f6-jm68-57ww
More information
Details
Impact
HttpContentEncoder(the superclass of the production handlerHttpContentCompressor) maintains a per-channelArrayDeque<CharSequence>namedacceptEncodingQueuethat accumulates attacker-controlled data without any size limit. The queue is filled on the I/O thread for every inbound HTTP request and drained only when the application later writes a non-1xx response. This creates a resource exhaustion vulnerability when an attacker exploits HTTP/1.1 pipelining to flood the connection with requests faster than the application produces responses.Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Netty: CRLF Injection via Multipart Filename in Netty HttpPostRequestEncoder
CVE-2026-59921 / GHSA-gcjf-9mgh-3p7g
More information
Details
Security Vulnerability Report: CRLF Injection via Multipart Filename in Netty HttpPostRequestEncoder
1. Vulnerability Summary
io.netty.handler.codec.http.multipart.HttpPostRequestEncoder